package com.atguigu.gmall.product.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * projectName: gmall
 *
 * @author: 陈鹏
 * time: 2022/10/5 19:40 星期三
 * description:首页使用的feign调用模块
 */
@FeignClient(name = "service-product", path = "/index/product", contextId = "indexFeign")
public interface IndexFeign {

    /**
     * 获取首页的分类信息
     * @return
     */
    @GetMapping
    public List<JSONObject> getIndexCategory();
}
